#include <thrust/device_vector.h>
#include <thrust/device_vector.h>

int main() {
    thrust::device_vector<float> x_dev = {1,2,3,100,4,5,6,7,8,9};
    thrust::for_each(x_dev.begin(), x_dev.end(), []__device__(float &x) {
        x += 100.0f;
        printf("=================%d\n", threadIdx.x);
    });

    return 0;
}